//
//  ViewController.m
//  iphoneText
//
//  Created by passfeediOS on 16/8/23.
//  Copyright © 2016年 passfeediOS. All rights reserved.
//

#import "ViewController.h"
#import "LHSlideTextView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor blackColor];
    LHSlideTextView* slideV=[[LHSlideTextView alloc]initWithFrame:CGRectMake(0, 0, 300, 40)];
    slideV.center=self.view.center;
    [self.view addSubview:slideV];
    
    NSString* s=@"-> 滑 动 解 锁";
    
    [slideV lh_slideAnimationWithText:s
                    withTextAlignment:NSTextAlignmentCenter
                        withTextcolor:[UIColor colorWithRed:195/255.0 green:132/255.0 blue:34/255.0 alpha:1.0]
                      withRendercolor:[UIColor whiteColor]
                         withTextFont:25];
    
    [slideV lh_slideAnimationWithDuration:2 repeatTimes:MAXFLOAT];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
